Skip to content

fix(NODE-3176): handle errors from MessageStream [PORT 4.0]#2780

Merged
nbbeeken merged 1 commit into4.0from
NODE-3176/4.0/catch-protocol-errors
Apr 19, 2021
Merged

fix(NODE-3176): handle errors from MessageStream [PORT 4.0]#2780
nbbeeken merged 1 commit into4.0from
NODE-3176/4.0/catch-protocol-errors

Conversation

@nbbeeken
Copy link
Contributor

@nbbeeken nbbeeken commented Apr 8, 2021

If there's a socket that gets a large amount of data written to it our MessageStream will throw an error about exceeding the permitted BSON size, this error is now captured in SDAM.
The code here is precisely the same as the fix in 3.6 so just asking for a sanity check here.

@nbbeeken nbbeeken requested review from dariakp and emadum April 8, 2021 14:31
@nbbeeken nbbeeken merged commit 76b110e into 4.0 Apr 19, 2021
@nbbeeken nbbeeken deleted the NODE-3176/4.0/catch-protocol-errors branch April 19, 2021 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants